# 10.4.1
from pathlib import Path
import json

numbers =[2,3,5,7,9,11]

path = Path('day17/numbers.json')
contents = json.dumps(numbers)      #json.dumps()存储这组数
path.write_text(contents)